package com.yong.ssj.util;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
 * 
 * BeanUtil for Spring
 * @author Leeyn
 */
public class BeanUtil {	
	private static ApplicationContext appContext = new ClassPathXmlApplicationContext("applicationContext.xml");
	private BeanUtil() {}	
	
	public static Object getBean(String name){		
		return appContext.getBean(name);
	}
}